package cn.angis.quartz.dtomapper;

import cn.angis.quartz.dto.input.JobInput;
import cn.angis.quartz.dto.output.JobOutput;
import cn.angis.quartz.model.SysJob;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 定时任务调度表转换类
* @author angis.cn
* @Date 2025-06-04
*/
@Mapper
public interface JobStruct {
    JobStruct INSTANCE = Mappers.getMapper(JobStruct.class);
    SysJob toJob(JobInput jobInput);
    JobOutput toOutput(SysJob job);
    List<JobOutput> toOutputList(List<SysJob> jobList);
}
